package com.ruihang.generalibrary.beans;

public class HtmlNodeItem {
    public static final int TYPE_VIDEO = 0;// 视频
    public static final int TYPE_AUDIO = 1;// 音频
    public static final int TYPE_IMAGE = 2;// 图片
    public static final int TYPE_TEXT = 3;// 文本
    public static final int TYPE_TEX_ALIGN_LEFT = 4;//文本文字
    public static final int TYPE_TEX_ALIGN_CENTER = 5;//文本文字
    public static final int TYPE_TEX_ALIGN_RIGHT= 6;//文本文字



    private int type = -1;// 类型
    private String text;
    private String src;

    public HtmlNodeItem() {
    }

    public HtmlNodeItem(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    @Override
    public String toString() {
        return "HtmlNodeItem{" +
                "类型=" + type +
                ", 文本='" + text + '\'' +
                ", 文件url='" + src + '\'' +
                '}';
    }
}
